from likeshop_api_project.api.handleCollectGoods_api import handleCollectGoods_model
from likeshop_api_project.base.myBase import Tools
from likeshop_api_project.api.login_api import login_model

class user_address_model(Tools):
    path = '/api/user_address/lists'

    # 发送查询任务接口
    def user_address_action(self,hd):

        user_address = self.huihua.get(url=self.hosturl + self.path, headers=hd)
        return user_address.json()

from likeshop_api_project.api.login_api import login_model
import requests
s = requests.session()
login = login_model(huihua=s)
msg = login.login_action(account='17612345678', pwd='admin123', client='4')
print(msg)
getuserToken = msg['data']['token']
hd = {"token": getuserToken}
user_address = user_address_model(huihua=s)
msg = user_address.user_address_action( hd=hd)
print(msg)
